<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div class="tab" id="tab">
        <div>
            <a href="#" class="tab-button">按钮1</a>
            <a href="#" class="tab-button">按钮2</a>
        </div>
        <div class="tab-panel">选项卡1</div>
        <div class="tab-panel">选项卡2</div>
    </div>
    <script src="./src/Tab.js"></script>
    <script>
        new Tab({
            id: 'tab',
            button: "tab-button",
            panel: "tab-panel"
        });
    </script>
</body>

</html>